
function getCheckedValue(radioObj) {
if(!radioObj)
return "";
var radioLength = radioObj.length;
if(radioLength == undefined)
if(radioObj.checked)
return radioObj.value;
else
return "";
for(var i = 0; i < radioLength; i++) {
		   if(radioObj[i].checked) {
		   return radioObj[i].value;
		   }
		   }
		   return "";
}
function returnXMLParseMethod(){

  radio = document.forms["XMLParseSelector"].elements['XMLParseMethod'];
  value = getCheckedValue(radio);
  return value;
}
function setXMLParseMethod(method){
    radio = document.forms["XMLParseSelector"].elements['XMLParseMethod'];
    setCheckedValue(radio,method);
}
function returnTagTreeMethod(){
    radio = document.forms["TagTreeMethod"].elements['TagTreeMethod'];
    value = getCheckedValue(radio);
    return value;
}
function setTagTreeMethod(method){
    radio = document.forms["TagTreeMethod"].elements['TagTreeMethod'];
    setCheckedValue(radio,method);
}
function setCheckedValue(radioObj, newValue) {
    if(!radioObj)
	return;
    var radioLength = radioObj.length;
    if(radioLength == undefined) {
	radioObj.checked = (radioObj.value == newValue.toString());
	return;
    }
    for(var i = 0; i < radioLength; i++) {
	radioObj[i].checked = false;
	if(radioObj[i].value == newValue.toString()) {
	    radioObj[i].checked = true;
	}
    }
}
